<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>[typora] Typora画图-Mermaid流程图 - Never Give Up</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="ZhangKQ" /><meta name="description" content="Typora画图-Mermaid流程图 一.介绍 Mermaid 是一个用于画流程图.状态图.时序图.甘特图的库，使用 JS 进行本地渲染，广泛集成于许多 Markdown 编辑器中" /><meta name="keywords" content="编辑器, typora, mermaid, 画图, 流程图" />






<meta name="generator" content="Hugo 0.92.0 with theme even" />


<link rel="canonical" href="https://blog.nevergiveup.tech/post/editor/typora%E7%94%BB%E5%9B%BEmermaid/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.b5a744db6de49a86cadafb3b70f555ab443f83c307a483402259e94726b045ff.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="[typora] Typora画图-Mermaid流程图" />
<meta property="og:description" content="Typora画图-Mermaid流程图 一.介绍 Mermaid 是一个用于画流程图.状态图.时序图.甘特图的库，使用 JS 进行本地渲染，广泛集成于许多 Markdown 编辑器中" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://blog.nevergiveup.tech/post/editor/typora%E7%94%BB%E5%9B%BEmermaid/" /><meta property="article:section" content="post" />
<meta property="article:published_time" content="2020-12-13T10:37:56+08:00" />
<meta property="article:modified_time" content="2022-02-10T16:37:56+08:00" />

<meta itemprop="name" content="[typora] Typora画图-Mermaid流程图">
<meta itemprop="description" content="Typora画图-Mermaid流程图 一.介绍 Mermaid 是一个用于画流程图.状态图.时序图.甘特图的库，使用 JS 进行本地渲染，广泛集成于许多 Markdown 编辑器中"><meta itemprop="datePublished" content="2020-12-13T10:37:56+08:00" />
<meta itemprop="dateModified" content="2022-02-10T16:37:56+08:00" />
<meta itemprop="wordCount" content="3158">
<meta itemprop="keywords" content="编辑器,typora,mermaid,画图,流程图," /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="[typora] Typora画图-Mermaid流程图"/>
<meta name="twitter:description" content="Typora画图-Mermaid流程图 一.介绍 Mermaid 是一个用于画流程图.状态图.时序图.甘特图的库，使用 JS 进行本地渲染，广泛集成于许多 Markdown 编辑器中"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">Never Give Up</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">主页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">归档</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">标签</li>
      </a><a href="/categories/">
        <li class="mobile-menu-item">分类</li>
      </a><a href="/remark/">
        <li class="mobile-menu-item">随言碎语</li>
      </a><a href="/about/">
        <li class="mobile-menu-item">关于</li>
      </a>
  </ul>

  


</nav>

  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">Never Give Up</a>
</div>





<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">主页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/categories/">分类</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/remark/">随言碎语</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/about/">关于</a>
      </li>
  </ul>
</nav>

    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">[typora] Typora画图-Mermaid流程图</h1>

      <div class="post-meta">
        <span class="post-time"> 2020-12-13 </span>
        <div class="post-category">
            <a href="/categories/%E7%BC%96%E8%BE%91%E5%99%A8/"> 编辑器 </a>
            </div>
          <span class="more-meta"> 约 3158 字 </span>
          <span class="more-meta"> 预计阅读 7 分钟 </span>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents">
  <ul>
    <li>
      <ul>
        <li><a href="#typora画图-mermaid流程图">Typora画图-Mermaid流程图</a>
          <ul>
            <li><a href="#一介绍">一.介绍</a></li>
            <li><a href="#二流程图基础">二.流程图基础</a></li>
            <li><a href="#三代码格式">三.代码格式</a></li>
            <li><a href="#四示例">四.示例</a></li>
          </ul>
        </li>
      </ul>
    </li>
  </ul>
</nav>
  </div>
</div>
    <div class="post-content">
      <h2 id="typora画图-mermaid流程图">Typora画图-Mermaid流程图</h2>
<h3 id="一介绍">一.介绍</h3>
<blockquote>
<p>Mermaid 是一个用于画流程图.状态图.时序图.甘特图的库，使用 JS 进行本地渲染，广泛集成于许多 Markdown 编辑器中</p>
</blockquote>
<h3 id="二流程图基础">二.流程图基础</h3>
<h4 id="1流程图符号和含义">1.流程图符号和含义</h4>
<blockquote>
<p>Mermaid 的流程图的图形含义使用象形的表达形式，非常类似中国象形，理解起来也不难，比如矩形 [],圆角矩形(),圆形(())</p>
</blockquote>
<table>
<thead>
<tr>
<th>图形</th>
<th>符号含义</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>圆角矩形</td>
<td>表示开始和结束</td>
<td>id(“文字”)</td>
</tr>
<tr>
<td>矩形</td>
<td>表示过程环节</td>
<td>id[&ldquo;文字&rdquo;]</td>
</tr>
<tr>
<td>单向箭头线段</td>
<td>表示流程进行方向</td>
<td></td>
</tr>
<tr>
<td>菱形</td>
<td>决策判断</td>
<td>id{&ldquo;文字&rdquo;}</td>
</tr>
<tr>
<td>圆形</td>
<td>表示连接，避免流程图</td>
<td>id((&ldquo;文字&rdquo;))</td>
</tr>
<tr>
<td>右向旗帜节点</td>
<td>标志提示</td>
<td>id&gt;&ldquo;文字&rdquo;]</td>
</tr>
</tbody>
</table>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">graph TB
    start(&#34;圆角矩形&#34;)
    rectangle[&#34;矩形&#34;]
    rhombus{&#34;菱形&#34;}
    round((&#34;圆形&#34;))
    right_arrow&gt;&#34;右向旗帜节点&#34;]
</code></pre></td></tr></table>
</div>
</div><h4 id="2节点之间的连线">2.节点之间的连线</h4>
<table>
<thead>
<tr>
<th>表述</th>
<th>说明</th>
<th>使用示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>&ndash;&gt;</td>
<td>添加尾部箭头</td>
<td>A(把你送进去监牢)&ndash;&gt;B{打开监牢}</td>
</tr>
<tr>
<td>&mdash;</td>
<td>不添加尾部箭头</td>
<td>A(把你送进去监牢)&mdash;B{打开监牢}</td>
</tr>
<tr>
<td>&ndash;</td>
<td>单线</td>
<td>A(把你送进去监牢)&ndash;B{打开监牢}</td>
</tr>
<tr>
<td>&ndash;text&ndash;</td>
<td>单线上加文字</td>
<td>A(把你送进去监牢)&ndash;你好亲爱的&ndash;B{打开监牢}</td>
</tr>
<tr>
<td>==</td>
<td>粗线</td>
<td>A(把你送进去监牢)==&gt;B{打开监牢}</td>
</tr>
<tr>
<td>==text==</td>
<td>粗线加文字</td>
<td></td>
</tr>
<tr>
<td>-.-</td>
<td>虚线</td>
<td></td>
</tr>
<tr>
<td>-.text.-</td>
<td>虚线加文字</td>
<td></td>
</tr>
</tbody>
</table>
<h5 id="代码示例-1箭头连线示例">代码示例 1:箭头连线示例</h5>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">graph TD
    A(把你送进去监牢)--&gt;B{打开监牢门}
    B--&gt;|&#34;你是初犯,使用小箭头&#34;|C[&#34;放进去小监牢&#34;]
    C---E(&#34;三杠没有箭头指向&#34;)
    B==&gt;|&#34;你是老犯,使用大箭头&#34;|D[&#34;换个大监牢&#34;]
    D-- &#34;终身监禁&#34; ---forever(&#34;没出头了&#34;)
    D---|&#34;终身监禁&#34;|forever(&#34;没出头了&#34;)
</code></pre></td></tr></table>
</div>
</div><h5 id="代码示例-2箭头上加文字">代码示例 2：箭头上加文字</h5>
<blockquote>
<p>加文字方式：节点连线表述定义+文字+节点连线表述定义
如：-.|“文字”|.-&gt;id(&quot;&quot;)</p>
</blockquote>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">graph TB
    connect[&#34;数据库连接&#34;]--&#34;root 127.0.0.1&#34;--&gt;start{&#34;开始连接&#34;}
    start-.虚线加文字.-&gt;ok[&#34;连接成功&#34;]
    start-.-&gt;faild[&#34;虚线不加文字&#34;]
</code></pre></td></tr></table>
</div>
</div><h5 id="代码示例3结合fontawesome使用">代码示例3：结合fontawesome使用</h5>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">graph TD
    B[&#34;fa:fa-weixin weixin&#34;]
    B--&gt;C[fa:fa-ban forbidden]
    B--&gt;D(fa:fa-spinner waitting);
</code></pre></td></tr></table>
</div>
</div><h5 id="代码示例4给流程表标题添加样式">代码示例4：给流程表标题添加样式</h5>
<blockquote>
<p>将其添加到流程图TD定义之后的顶部。
这将定义一个框，用下划线（<u>）设置其文本的样式，并使框填充和描边为空白<code>#FFF</code>（样式标题）
并将其链接到实际的第一步/框（FirstStep），从而使其显示在顶部，同时使使用linkStyle 0隐藏链接</p>
</blockquote>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">graph TD

title[&lt;u&gt;My Title&lt;/u&gt;]
title--&gt;FirstStep
style title fill:#FFF,stroke:#FFF
linkStyle 0 stroke:#FFF,stroke-width:0;

FirstStep--&gt;...
</code></pre></td></tr></table>
</div>
</div><h4 id="3布局方向">3.布局方向</h4>
<table>
<thead>
<tr>
<th>关键字</th>
<th>含义</th>
</tr>
</thead>
<tbody>
<tr>
<td>TB/TD</td>
<td>Top Bottom 从上到下</td>
</tr>
<tr>
<td>BT</td>
<td>bottom top 从下到上</td>
</tr>
<tr>
<td>LR</td>
<td>left right 从左到右</td>
</tr>
<tr>
<td>RL</td>
<td>right left 从右到左</td>
</tr>
</tbody>
</table>
<h4 id="4子图">4.子图</h4>
<blockquote>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">subgraph title
 graph definition
end
</code></pre></td></tr></table>
</div>
</div></blockquote>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">graph TB

    subgraph 图3
    two1---two2
    end
    subgraph 图2
    three1 ==&gt; three2
    end
        subgraph 图1
    one1--&gt;one2
    end
    one1--&gt;two2
    style 图2 fill:#f9f,stroke:#333,stroke-width:4px
</code></pre></td></tr></table>
</div>
</div><h3 id="三代码格式">三.代码格式</h3>
<h4 id="1基本格式">1.基本格式</h4>
<blockquote>
<p>基本格式：
graph {布局方向[TB | BT | LR |RL ]}
【自定义代码】</p>
</blockquote>
<h4 id="2示例">2.示例</h4>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span><span class="lnt">25
</span><span class="lnt">26
</span><span class="lnt">27
</span><span class="lnt">28
</span><span class="lnt">29
</span><span class="lnt">30
</span><span class="lnt">31
</span><span class="lnt">32
</span><span class="lnt">33
</span><span class="lnt">34
</span><span class="lnt">35
</span><span class="lnt">36
</span><span class="lnt">37
</span><span class="lnt">38
</span><span class="lnt">39
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">graph LR
	
    subgraph 管理系统
    DA1(fa:fa-ban infinity管理系统)--添加任务--&gt;DB1(infi-sync-datasync服务)
    DB1--&gt;DC1(定时任务)
    DC1--&gt;DD2(添加任务到etcd)
    DB1--&gt;DD1(同步任务)
    DD1--&gt;DE1(infi-sync-grpc服务)
    DE1--&gt;DF1(分发任务到mq)
    end
    
	subgraph 同步任务定时服务
	TA1(infi-timer服务)--启动--&gt;TB1(监听etcd中任务到定时器)
	TB1--运行时-触发任务--&gt;TC1(调用内网接口)
	TB1--运行时--&gt;TC2(定时更新数据同步任务的状态及进度)
	TB1--运行时--&gt;TC3(定时更新已完成任务记录)
	TC1--添加任务到--&gt;TD1(rabbitmq)
	TC3--添加记录到--&gt;TD2(elasticsearch)
	end
	
	subgraph 监视器服务
	MA1(infi-sync-monitor服务)--启动--&gt;MB1(监控服务)
	MB1--&gt;MB2(shell命令查看服务状态)
	MB2--&gt;MC1(infi-sync-datasync服务)
	MB2--&gt;MC2(infi-sync-grpc服务)
	MB2--&gt;MC3(infi-sync-notify服务)
	MB2--&gt;MC4(infi-timer服务)
	MC1--&gt;MD1(发现服务停止,自动启动服务)
	MC2--&gt;MD1
	MC3--&gt;MD1
	MC4--&gt;MD2(主节点停止,从节点启动)
	end
	
	subgraph 文件监听服务
	NA1(infi-sync-notify服务)--启动--&gt;NB1(监听etcd同步任务)
	NB1--同步任务获取目录--&gt;NC1(监听目录变动)
	NC1--触发文件变更事件--&gt;ND1(添加任务到mq)
	NC1--触发文件变更事件--&gt;ND2(记录日志到es)
	end
</code></pre></td></tr></table>
</div>
</div><h3 id="四示例">四.示例</h3>
<h4 id="1横向流程图">1.横向流程图</h4>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">graph LR
A[方形] --变化--&gt; B(圆角)
B -.变化.-&gt; C{条件a}
C --&gt; |a=1| D[结果1]
C --&gt; |a=2| D[结果2]
F[横向流程图]
</code></pre></td></tr></table>
</div>
</div><h4 id="2竖向流程图">2.竖向流程图</h4>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">graph TD
A[方形] --&gt; B(圆角)
B --&gt; C{条件a}
C --&gt; D[结果1]
C --&gt; E[结果2]
F[竖向流程图]
</code></pre></td></tr></table>
</div>
</div><h4 id="3标准流程图纵向">3.标准流程图(纵向)</h4>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span><span class="lnt">9
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">st=&gt;start: 开始框
op=&gt;operation: 处理框
cond=&gt;condition: 判断框（是或否？）
sub1=&gt;subroutine: 子流程
io=&gt;inputoutput: 输入输出框
e=&gt;end: 结束框
st-&gt;op-&gt;cond
cond(yes)-&gt;io-&gt;e
cond(no)-&gt;sub1(right)-&gt;op
</code></pre></td></tr></table>
</div>
</div><h4 id="4标准流程图横向">4.标准流程图(横向)</h4>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span><span class="lnt">9
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">st=&gt;start: 开始框
op=&gt;operation: 处理框
cond=&gt;condition: 判断框（是或否？）
sub1=&gt;subroutine: 子流程
io=&gt;inputoutput: 输入输出框
e=&gt;end: 结束框
st(right)-&gt;op(right)-&gt;cond
cond(yes)-&gt;io(bottom)-&gt;e
cond(no)-&gt;sub1(right)-&gt;op
</code></pre></td></tr></table>
</div>
</div><h4 id="5uml-简单时序图样例">5.UML 简单时序图样例</h4>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">对象A-&gt;对象B: 对象B你好吗？（请求）
Note right of 对象B: 对象B的描述
Note left of 对象A: 对象A的描述
对象B--&gt;对象A: 我很好（响应）
对象A-&gt;对象B: 你真的好吗？
</code></pre></td></tr></table>
</div>
</div><h4 id="6uml-复杂时序图样例">6.UML 复杂时序图样例</h4>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">Title: 标题: 复杂使用
对象A-&gt;对象B: 对象B，你好吗？（请求）
Note right of 对象B: 对象B的描述
Note left of 对象A: 对象A的描述（提示）
对象B--&gt;对象A: 我很好（响应）
对象B-&gt;小三: 你好吗？
小三--&gt;&gt;对象A: 对象B找我了
对象A-&gt;对象B: 你真的好吗？
Note over 小三,对象B: 我们是朋友
participant C
Note right of C: 没人陪我玩
</code></pre></td></tr></table>
</div>
</div><h4 id="7uml-准样时序图标例">7.UML 准样时序图标例</h4>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">sequenceDiagram
participant 张三
participant 李四
张三-&gt;王五: 王五，你好吗？
loop 健康检查
王五-&gt;王五: 与疾病战斗
end
Note right of 王五: 合理 食物
看医生...
李四--&gt;张三: 很好！
王五-&gt;李四: 你怎么样？
李四--&gt;王五: 很好！
</code></pre></td></tr></table>
</div>
</div><h4 id="8甘兰图">8.甘兰图</h4>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback">gantt

title 软件开发甘特图
dateFormat YYYY-MM-DD
section 设计
需求:done,des1,2020-01-01,2020-01-05
原型:active,des2,2020-01-06,3d
UI设计:des3,after des2,5d
未来任务:des4,after des3,5d
section 开发
学习准备理解需求:crit,done,2020-01-01,24h
设计框架:crit,done,after des2,2d
开发:crit,active,3d
未来任务:crit,5d
耍:2d
section 测试
功能测试:active,a1,after des3,3d
压力测试:after a1,20h
测试报告:48h
</code></pre></td></tr></table>
</div>
</div>
    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">ZhangKQ</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2022-02-10
        
    </span>
  </p>
  
  <p class="copyright-item">
    <span class="item-title">许可协议</span>
    <span class="item-content"><a rel="license noopener" href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License" target="_blank">Creative Commons Attribution-ShareAlike License</a></span>
  </p>
</div>
<div class="post-reward">
  <input type="checkbox" name="reward" id="reward" hidden />
  <label class="reward-button" for="reward">赞赏支持</label>
  <div class="qr-code">
    
    <label class="qr-code-image" for="reward">
        <img class="image" src="/qrcode/wechat-qr-code.jpg">
        <span>微信打赏</span>
      </label>
    <label class="qr-code-image" for="reward">
        <img class="image" src="/qrcode/alipay-qr-code.jpg">
        <span>支付宝打赏</span>
      </label>
  </div>
</div><footer class="post-footer">
      <div class="post-tags">
          <a href="/tags/%E7%BC%96%E8%BE%91%E5%99%A8/">编辑器</a>
          <a href="/tags/typora/">typora</a>
          <a href="/tags/mermaid/">mermaid</a>
          <a href="/tags/%E7%94%BB%E5%9B%BE/">画图</a>
          <a href="/tags/%E6%B5%81%E7%A8%8B%E5%9B%BE/">流程图</a>
          </div>
      <nav class="post-nav">
        <a class="prev" href="/post/editor/typora%E7%94%BB%E5%9B%BEuml/">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">[typora] Typora画图-UML时序图</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/post/dev_language/golang/golang%E7%9A%84json%E8%A7%A3%E6%9E%90%E8%87%B3%E7%BB%93%E6%9E%84%E4%BD%93%E6%8A%A5%E9%94%99%E8%A7%A3%E5%86%B3/">
            <span class="next-text nav-default">[go] golang踩坑记录</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:wdyxzkq@163.com" class="iconfont icon-email" title="email"></a>
      <a href="https://github.com/dysoso" class="iconfont icon-github" title="github"></a>
      <a href="https://gitee.com/dysoso" class="iconfont icon-gitlab" title="gitlab"></a>
  <a href="https://blog.nevergiveup.tech/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://blog.nevergiveup.tech/">blog.nevergiveup.tech</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>

  

  <span class="copyright-year">
    &copy; 
    2021 - 
    2022<span class="heart"><i class="iconfont icon-heart"></i></span><span><a href="https://beian.miit.gov.cn/">蜀ICP备2021005948号-1</a></span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.c99b103c33d1539acf3025e1913697534542c4a5aa5af0ccc20475ed2863603b.js"></script>


<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
	window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
	ga('create', 'never-give-up', 'auto');
	ga('set', 'anonymizeIp', true);
	ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>







</body>
</html>
